From: Eli Zaretskii Date: Sat, 8 Dec 2007 12:38:46 +0000 (+0000) Subject: (latexenc-find-file-coding-system): If both coding-system-for-write and X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18855^2~955 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d0b22d7de60c793079adabbae643002e3ccaa167;p=emacs.git (latexenc-find-file-coding-system): If both coding-system-for-write and buffer-file-coding-system of latex-main-file are nil, use `undecided'. --- diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index 57013b59538..cc52eb4cbdf 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el @@ -181,7 +181,8 @@ coding system names is determined from `latex-inputenc-coding-alist'." (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of the CS. (with-current-buffer latexenc-main-buffer - (or coding-system-for-write buffer-file-coding-system)))) + (or coding-system-for-write buffer-file-coding-system + 'undecided)))) 'undecided)))) 'undecided))